#pragma once
#ifndef _BASE_BODY_H_
#define _BASE_BODY_H_
#include "Box2D/Box2D.h"
#include "Define.h"
#include "BodyMaker.h"
class BaseBody
{
protected:
	b2World *mWorld;
	b2BodyType mBodyStype;

	virtual void makeBody();
public:
	b2Body *mColBody;
	b2Body *mShaBody;
	BaseBody(b2World *_World, b2BodyType _BodyStype);
	~BaseBody();
	virtual void setPosition(b2Vec2 _Position);
	virtual void setAngle(float _Angle);
	virtual float getAngle();
	virtual b2Vec2 getPosition();
	virtual void setTransform(b2Vec2 _Position, float _Angle);
	virtual void setActive(bool active);
};
#endif _BASE_BODY_H_

